package com.five.community.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Admin {

        private int id; //用户编号
        private String username; //用户名
        private String password; //密码
        private String salt; //盐
        private String header; //头像
        private Date createTime; //注册日期
        private boolean state; //状态，0=可用，1=禁用
        private int roleId; // 角色id

        //@DateTimeFormat(pattern = "yyyy-MM-dd")
        //@DateTimeFormat(pattern = "HH:mm")
        //@DateTimeFormat(pattern = "yyyy-MM-dd'T'HH:mm")
        //private Date birth;

    }


